project(plasma-applet-vkchecker)
 
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
 
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
   )

set(vkchecker_SRCS vkclient.cpp vkchecker.cpp)
kde4_add_ui_files(vkchecker_SRCS vkcheckerConfig.ui)

kde4_add_plugin(plasma_applet_vkchecker ${vkchecker_SRCS})
target_link_libraries(plasma_applet_vkchecker 
                      ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS})
 
install(TARGETS plasma_applet_vkchecker
        DESTINATION ${PLUGIN_INSTALL_DIR})
 
install(FILES plasma-applet-vkchecker.desktop
        DESTINATION ${SERVICES_INSTALL_DIR})

install(FILES vkchecker.notifyrc 
		DESTINATION ${DATA_INSTALL_DIR}/plasma-applet-vkchecker)
